<?
	require_once "../../_func/__Global.php";
	require_once "../../_func/__Local.php";
	require_once "../../_func/__MysqlFunc.php";
	require_once "../../_func/_CodeFunc.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>:: 농협전북지부 ERP시스템 ::</title>
<link href="../css/layout.css" type="text/css" rel="stylesheet" />
<link type="text/css" href="/css/hot-sneaks/jquery-ui-1.8.18.custom.css" rel="stylesheet" />	
<script type="text/javascript" src="/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.18.custom.min.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/js/print_excel.js"></script>
<script type="text/javascript">
$(function(){
	// Datepicker
	$('#sdate').datepicker({
		inline: true,
		showOn: 'button',
		buttonImage:"/img/ico_cal.jpg",
		buttonImageOnly: true
	});
	//hover states on the static widgets
	$('#dialog_link, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);

	$('#edate').datepicker({
		inline: true,
		showOn: 'button',
		buttonImage:"/img/ico_cal.jpg",
		buttonImageOnly: true
	});
});
</script>
<script type="text/javascript">
	function search()
	{
		if ($("#sdate").val()=="")
		{
			alert("검색 시작일을 입력하세요");
			$("#sdate").focus();
			return;
		}
		if ($("#edate").val()=="")
		{
			alert("검색 종료일을 입력하세요");
			$("#edate").focus();
			return;
		}
		document.theForm.submit();
	}
</script>
</head>

<body>
<div id="wrap">
<!-- header start -->
<? include("../_layout/head.inc"); ?>
<!-- header end -->

<!-- search start -->
<? include("./item_search.php"); ?>
<!-- search end -->
<!-- container start -->
	<div id="container"> 
    	<div class="subtit">
        	<p class="subtt01"><span>수발주입력 > 등록및조회</span></p>
		</div>
        <div class="contents">
			<form name="theForm" id="theForm" method="post" action="item_order_search.html">
			<input type="hidden" name="menu1" id="menu1" value="<?=$menu1?>" />
			<input type="hidden" name="menu2" id="menu2" value="<?=$menu2?>" />
            <table cellpadding="0" cellspacing="0" border="0" class="erpSearch">
            	<tr>
                	<td><span class="txt_search"></span></td>
                    <td>
                    	<input type="text" id="sdate" name="sdate" value="<?=$sdate?>" title="발주일입력/달력을클릭해주세요." readonly class="boxinput w100" style="margin-right:2px;vertical-align:top;" /> ~ 
                    	<input type="text" id="edate" name="edate" value="<?=$edate?>" title="발주일입력/달력을클릭해주세요." readonly class="boxinput w100" style="margin-right:2px;vertical-align:top;" />
                    </td>
                    <td><input type="button" class="btn_search" onclick="search()" title="조회"/>
                    </td>
                </tr>
            </table>
			</form>

            <p class="tableTitle"><span class="b"></span>수발주 목록</p>
			<div class="BtnList2">
				<input type="button" class="btn_excel" onClick="MNG.fncRtnfunc('excel');" title="엑셀로다운받기"/>
                <input type="button" class="btn_print" onClick="MNG.fncRtnfunc('print');" title="출력하기"/>
			</div>
			<input type="hidden" name="printtitle" id="printtitle" value="수발주목록" />
            <table cellpadding="0" cellspacing="1" border="0" class="erpTable" id="printtable">
            	<tr>	
                	<th>등록일</th>
                    <th>농협명</th>
					<th>거래방법</th>
                    <th>품목</th>
                    <th>품종</th>
                    <th>등급</th>
                    <th>규격</th>
                    <th>중량</th>
                    <th>수량</th>
                    <th>합계</th>
                    <th>출하처</th>
					<th>도착일</th>
                    <th>도착일시</th>
					<th>출하상태</th>
				</tr>
<!-- list start -->
<? include("./item_order_search_list.php"); ?>
<!-- list end -->
            </table>
        </div>
    </div>   
<!-- footer start -->
<? include("../_layout/footer.inc"); ?>
<!-- footer end -->
</div>
</body>
</html>
